const nav = {
  state: {  //存储变量
    isNavShow: 'true'
  },
  mutations: {  //设置变量方法
    setNavDisplay(state, bool) {
      state.isNavShow = bool;
    }
  }
};

export default nav;  //抛出模块